import request from '@/utils/request'

// 服务项目
export function getServiceList(params) {
  return request.get('/client-pet/service/list', { params })
}
export function addService(data) {
  return request.post('/client-pet/service/add', data)
}
export function updateService(data) {
  return request.put('/client-pet/service/update', data)
}
export function deleteService(id) {
  return request.delete(`/client-pet/service/delete/${id}`)
}

// 服务订单
export function getOrderList(params) {
  return request.get('/client-pet/service/order/list', { params })
}
export function addOrder(data) {
  return request.post('/client-pet/service/order/add', data)
}
export function updateOrder(data) {
  return request.put('/client-pet/service/order/update', data)
}
export function deleteOrder(id) {
  return request.delete(`/client-pet/service/order/delete/${id}`)
}

// 服务评价
export function getEvaluationList(params) {
  return request.get('/client-pet/service/evaluation/list', { params })
}
export function getEvaluationStats(params) {
  return request.get('/client-pet/service/evaluation/stats', { params })
}
export function addEvaluation(data) {
  return request.post('/client-pet/service/evaluation/add', data)
}
export function deleteEvaluation(id) {
  return request.delete(`/client-pet/service/evaluation/delete/${id}`)
} 